package com.example.tests;

import com.example.TestBase;
import org.junit.*;

/**
 * Смена пароля администратора
 */
public class ChangePasswordAdmin extends TestBase {

    @Test
    public void testChangePasswordAdmin() throws Exception {
        goToMainPage()
            .loginWithValidCredentials("admin", "admin")
            .gotoUserProfilePage()
            .editFormIncorrectPassword("123456")
            .editCorrectPassword("123456")
            .gotoUserProfilePage()
            .setDefaultValues()
            .logout();
    }
}
